
    class Front {
        constructor(selector,scrollHeight=900) {
            this.container = $(selector);
            this.scrollHeight=scrollHeight;
        }
        bindEvent() {
            console.log($(window),this)
            $("main").on("scroll", this.onScroll.bind(this) );
        }
        onScroll() {
            alert(1)
            console.log(this)
            var sTop = $(window).scrollTop();
            console.log(sTop,this.scrollHeight)
            this.container.css({
                display: `${sTop >= this.scrollHeight ? "block" : "none"}`
            })
        }
        init() {
            this.bindEvent();
        }
    }

export{
    Front
}

